/**
 * 
 */
package com.surelution.cppei.weixin.gate

/**
 * @author <a href="mailto:guangzong.syu@gmail.com">guangzong</a>
 *
 */
class XmlDemo {

	public static void main(String[] args) {
		def file = new File("/Users/johnny/Documents/workspace-ggts-3.3.0.RELEASE/cppei-wx-gate/src/groovy/whistle.xml")
		def xp = new XmlParser()
		
		def node = xp.parse(file)
		
		println node.'processor-chain'.processor[0].text()
		
//		XmlSlurper slurper = new XmlSlurper()
//		def xml = slurper.parse(file)
//		println xml
		
	}
}
